package com.itheima.reggie.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Dish;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DishMapper extends BaseMapper<Dish>{


    Integer findByCid(long category_id);

    void statusConvert(@Param("status") Integer status, @Param("ids") List<Long> ids);

    List<Dish> findByIds(@Param("status") Integer status, @Param("ids") List<Long> ids);

    void deleteByIds(@Param("ids") List<Long> ids);
}
